package by.wind.drebedengi.datalayer.bean;

import com.j256.ormlite.field.DatabaseField;

public class Category extends AbstractBean{
	
	@DatabaseField
	private int parentId;
	@DatabaseField
	private int budgetFamilyId;
	@DatabaseField
	private String type;
	@DatabaseField(index = true)
	private String name;
	@DatabaseField
	private boolean isHidden;
	@DatabaseField
	private String sort;
	
	public int getParentId() {
		return parentId;
	}
	public void setParentId(int parentId) {
		this.parentId = parentId;
	}
	public int getBudgetFamilyId() {
		return budgetFamilyId;
	}
	public void setBudgetFamilyId(int budgetFamilyId) {
		this.budgetFamilyId = budgetFamilyId;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public boolean isHidden() {
		return isHidden;
	}
	public void setHidden(boolean isHidden) {
		this.isHidden = isHidden;
	}
	public String getSort() {
		return sort;
	}
	public void setSort(String sort) {
		this.sort = sort;
	}
	
	public String toString() {
		return "Category: \n" +
				"parentId = " + parentId + "\n" +
				"server_id = " + server_id + "\n" +
				"client_id = " + client_id + "\n" +
				"budgetFamilyId = " + budgetFamilyId + "\n" +
				"type = " + type + "\n" +
				"name = " + name + "\n" +
				"isHidden = " + isHidden + "\n" + 
				"sort = " + sort;
	}
	
	
}
